package com.seven.ssa.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seven.ssa.model.dto.question.QuestionQueryRequest;
import com.seven.ssa.model.entity.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import com.seven.ssa.model.vo.QuestionVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Dell
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2025-06-14 10:41:37
*/
public interface QuestionService extends IService<Question> {


    QueryWrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);

    QuestionVO getQuestionVO(Question question);

    Page<Question> listQuestionByPage(QuestionQueryRequest questionQueryRequest);

    Page<QuestionVO> getQuestionVOPage(Page<Question> questionPage, HttpServletRequest request);

    Page<Question> searchFromEs(QuestionQueryRequest questionQueryRequest);

    void crawlerDetect(long loginUserId);
}
